草庐IT

c++ - 为什么我们在 C++ 中使用 printf() 函数?

全部标签

c++ - 函数指针的解引用是如何发生的?

为什么以及如何取消引用函数指针只是“什么都不做”?这就是我要说的:#includevoidhello(){printf("hello");}intmain(void){(*****hello)();}来自here的评论:functionpointersdereferencejustfine,buttheresultingfunctiondesignatorwillbeimmediatelyconvertedbacktoafunctionpointer从回答here:Dereferencing(inwayyouthink)afunction'spointermeans:accessing
12